<template>
  <el-input placeholder="请选择日期" icon="search" v-model="data" :on-icon-click="handleIconClick">
  </el-input>
</template>


<script>
import { Input } from 'element-ui';

export default {
  components: {
    ElInput: Input,
  },
  data() {
    return {
      data: '',
    };
  },
  methods: {
    handleIconClick(ev) {
      console.log(ev);
    },
  },
};
</script>
